package string;

public class Demo14 {
    public static void main(String[] args) {
        String str = "Thinking in Java 是本好书";
        int index = str.indexOf("in",3);
        System.out.println(index);

        index = str.indexOf("in",6);
        System.out.println(index);

        index = str.indexOf('i',3);
        System.out.println(index);
    }
}
